﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Reflection;

namespace ColorUtilities
{
    public class NamedColors
    {

        private static string CleanGet(string psIn)
        {
            return psIn.Replace("get_", "");
        }

        public static Color GetColor(string psColorName)
        {
            String xamlString = string.Format("<Canvas xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" Background=\"{0}\"/>", psColorName);
            Canvas c = (Canvas)System.Windows.Markup.XamlReader.Load(xamlString);
            SolidColorBrush mistyRoseBrush = (SolidColorBrush)c.Background;
            Color mistyRose = mistyRoseBrush.Color;
            return mistyRose;
        }

        public static Color AliceBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color AntiqueWhite { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Aqua { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Aquamarine { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Azure { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Beige { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Bisque { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Black { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color BlanchedAlmond { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Blue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color BlueViolet { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Brown { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color BurlyWood { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color CadetBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Chartreuse { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Chocolate { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Coral { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color CornflowerBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Cornsilk { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Crimson { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Cyan { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkCyan { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkGoldenrod { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkGray { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkKhaki { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkMagenta { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkOliveGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkOrange { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkOrchid { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkRed { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkSalmon { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkSeaGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkSlateBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkSlateGray { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkTurquoise { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DarkViolet { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DeepPink { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DeepSkyBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DimGray { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color DodgerBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Firebrick { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color FloralWhite { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color ForestGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Fuchsia { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Gainsboro { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color GhostWhite { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Gold { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Goldenrod { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Gray { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Green { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color GreenYellow { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Honeydew { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color HotPink { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color IndianRed { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Indigo { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Ivory { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Khaki { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Lavender { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LavenderBlush { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LawnGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LemonChiffon { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightCoral { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightCyan { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightGoldenrodYellow { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightGray { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightPink { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightSalmon { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightSeaGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightSkyBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightSlateGray { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightSteelBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LightYellow { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Lime { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color LimeGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Linen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Magenta { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Maroon { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color MediumAquamarine { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color MediumBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color MediumOrchid { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color MediumPurple { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color MediumSeaGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color MediumSlateBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color MediumSpringGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color MediumTurquoise { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color MediumVioletRed { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color MidnightBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color MintCream { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color MistyRose { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Moccasin { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color NavajoWhite { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Navy { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color OldLace { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Olive { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color OliveDrab { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Orange { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color OrangeRed { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Orchid { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color PaleGoldenrod { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color PaleGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color PaleTurquoise { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color PaleVioletRed { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color PapayaWhip { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color PeachPuff { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Peru { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Pink { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Plum { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color PowderBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Purple { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Red { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color RosyBrown { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color RoyalBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color SaddleBrown { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Salmon { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color SandyBrown { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color SeaGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color SeaShell { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Sienna { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Silver { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color SkyBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color SlateBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color SlateGray { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Snow { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color SpringGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color SteelBlue { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Tan { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Teal { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Thistle { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Tomato { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Transparent { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Turquoise { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Violet { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Wheat { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color White { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color WhiteSmoke { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color Yellow { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }
        public static Color YellowGreen { get { return GetColor(CleanGet(MethodBase.GetCurrentMethod().Name)); } }

    }
}
